package main.java.com.uycode.generic;

import java.util.ArrayList;
import java.util.Collection;

public class Cell<T> {
    T value;

    Cell(T v) {
        value = v;
    }

    T getCell() {
        return value;
    }

    void setCell(T v) {
        value = v;
    }

    public static void main(String[] args) {
        Cell<String> x = new Cell<>("abc");
        System.out.println(x.value);
        System.out.println(x.getCell());
        //x.setCell("cba");
        System.out.println(x.value);
    }
}
